
package thelife;

import java.util.TimerTask;

/**
 *
 * @author Paweł Młynarczyk <zwarios@gmail.com>
 */
public class TheTime extends TimerTask {
    Matrix m;
    Window w;
    TheTime(Matrix m, Window w){
        this.m = m;
        this.w = w;
    }

    @Override
    public void run() {
        m.nextEpoch();
        w.repaintColony();
    }
}
